Skip to content

feat(studio): 全部类型 All types ends the 高级 fold, and the type directory lists every type a package could hold - #37380

Queued
objectstack-fleet[bot] wants to merge 3 commits into
mainfrom
claude/issue-37360-advanced-all-types
Queued

objectstack-fleet[bot] wants to merge 3 commits into
mainfrom
claude/issue-37360-advanced-all-types

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #37360
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:在 Studio 左侧菜单的「高级」折叠区最下面,多了一行「全部类型」;点开是类型目录页,列出六个分组里的所有类型,这个应用还没有的类型标着「还没有」,并写明在这里能否新建。
  • 为什么做:属于 Studio 左侧菜单改版;替从零新建应用的开发者解决邮件模板、文档、字段映射这类东西的第一条无处新建的问题。
  • 出错会怎样:打开「全部类型」的开发者可能看到某个类型的「还没有」标错;「高级」里原有的行不受影响,本改动可以整体撤回。
  • 要你做什么:本改动在架构决策记录里加了一句修订,需要你亲手合并或批准。

What changes

Implements ruling A on #37360 (ruling record comment 7177310364, maintainer, verbatim: 「37360 同意」).

  • The row. On a package, the 高级 Advanced fold ends with one row, 「全部类型」 All types, below its groups and under no group's label. It opens the area's type directory (/studio/PKG/metadata), and on that page it is the current entry, so the fold opens by itself there without writing its cookie. A menu search lists it last when its name matches. ~org and ~all draw no fold and no row. The row is not part of buildStudioMenu's groups, so the fold's rule does not change: a 高级 type is drawn when the package holds one, and appears there by itself once it does.
  • The directory. On a package under Studio's area, the page lists the types the package holds exactly as before (the shared scopeDirectoryEntries rule is untouched, so the menu and the directory still agree on what a package holds) and, after them in each group, every other served type of the menu's six groups (directoryNotHeldEntries). Each of those is marked "None yet" / 「还没有」 in place of an item count, with the existing state word for what can be done there (read-only / can be customized / can be added / writable). A tile opens the type's list, which carries New. A failed diagnostics sweep says nothing about what the package holds, so then nothing is marked or added. The cross-package leg and Setup's directory list as before.
  • ADR-0084 gains one dated amendment line under "Entries that are not a type": the fifth entry, 全部类型, the fold's last row, the one entry under no group; the fold's rule stands.
  • Studio catalogue keys (en, zh): engine.studio.menu.allTypes, engine.directory.notHeld, engine.directory.notHeldTitle, engine.directory.notHeldReadOnlyTitle. The palette's entry-icon map gains the new entry kind (the palette lists only the menu's groups, so it draws nothing new).

Read first (by risk):

  1. ui/packages/app-shell/src/views/metadata-admin/DirectoryPage.tsx — directoryNotHeldEntries and the notHeldEntries memo (the diagError guard), and the tile's not-held badge.
  2. ui/packages/app-shell/src/views/studio-design/StudioMenu.tsx — renderAllTypes inside the fold region, after renderGroups(tiers.advanced, 'advanced'), and currentIsAdvanced.
  3. ui/packages/app-shell/src/views/studio-design/studioMenuModel.ts — studioMenuAllTypesEntry and the area-root branch of studioMenuCurrentKey.

Tests

Pins (each ablated once, below):

  • The row exists and is last, under no group — StudioMenu.test.tsx › 全部类型 All types: the last link of the fold region, after every studio-menu-advanced-group-*, inside no data-sidebar="group" and under no group label; href /studio/PKG/metadata. Model pins in studioMenuModel.test.ts (package only; in no group of the menu or either tier).
  • The directory lists held and not-held types correctly — DirectoryPage.allTypes-37360.test.tsx: held types first with their counts and no mark; then each group's not-held types marked "None yet" with no count and the right state word (api read-only, doc addable, email_template writable); a type outside the six groups and the hidden field are never listed; a failed sweep marks nothing; the cross-package leg is unchanged.
  • A not-held type's tile reaches a list with New — same file: clicking the email_template tile routes to /studio/PKG/metadata/email_template?package=PKG, where the real list page renders metadata-list-create.
  • CONTROL: the fold still omits a not-held type — StudioMenu.test.tsx (rendered: email_template and position served, held by none, absent from the open fold while 全部类型 is there) and studioMenuModel.test.ts (the shared rule plus buildStudioMenu).

Rewritten on purpose (each marked in place): studioMenuModel.test.ts "nothing at the directory" → the directory's current entry is allTypes; StudioDesignSurface.metadataArea-28561.test.tsx "The directory is no one entry's page" → the current link is studio-menu-entry-allTypes; metadataAreaHost.scope-28561.test.tsx kernel-package directory read "No matches" → it lists the kernel package's not-held types, scoped to it, URL unrepaired.

Ablations (one per pin, each through scripts/ablation-replace.mjs, anchor hit 1 → 0, blob changed, restored to the HEAD blob with git diff HEAD empty; tests import the source by relative path, so no dist/ is involved):

Pin Mutation Result
Row last, under no group drop the row's render in the fold red: Unable to find an element by: [data-testid="studio-menu-entry-allTypes"]
Directory lists held + not-held directoryNotHeldEntries returns nothing red: expected [ 'hook', 'object' ] to deeply equal [ Array(5) ]
Not-held tile reaches list with New a not-held tile links to . red: the tile's href assertion
CONTROL fold omits not-held the menu's always list becomes every served type red: expected ... to be null on studio-menu-entry-type:email_template

Readings are in the details blocks under Verification.

Acceptance notes

  • The six types that cannot be created in Studio are listed, marked read-only (the choice the ruling left to execution). Reasons: the ruling's own words are "every type of the six groups", and leaving six out would need a second hand-kept exception list beside the registry the page reads; listing them tells a builder the type exists and that its items come from code, which is the question the page answers; the page already carries the read-only word and the "Hide read-only" filter, which drops them in one click (pinned).
  • Not-held types are listed on a read-only package too, with the same state word the page already draws there: a read-only base's New lands in its .custom pair (ADR-0146 D3), so the list can still make a first item.
  • A failed diagnostics sweep adds and marks nothing: it answered nothing about what the package holds, and "None yet" on every type would be a wrong claim (pinned).
  • The menu's ⌘K palette does not list 全部类型: it lists the menu's groups, and the row sits in none. Its icon map gained the kind only because the map is typed over every entry kind.
  • Files beyond the claim's surface: StudioPaletteGroups.tsx (one icon row, required by its typed map), and two test files whose pins described the old directory (StudioDesignSurface.metadataArea-28561.test.tsx, metadataAreaHost.scope-28561.test.tsx), each rewritten on purpose.
  • Browser walk on a new empty package (the card's suggested end-to-end check): NOT MEASURED, reason: not run in this container; the routing from tile to list and New is pinned over the real directory and list pages in jsdom.

Verification

Two-minute check: open Studio on a new, empty app, expand 「高级」 and click its last row 「全部类型」; expect every type under its group, e.g. 邮件模板 tile with 「还没有」 and 「可写」, and clicking it opens the empty email-template list with 「新建」.

All readings on head 45ed0a4bf5c unless noted.

Affected package tests (narrowed, declared)
  • ui: pnpm exec vitest run --maxWorkers=2 packages/app-shell/src/views/studio-design/ packages/app-shell/src/views/metadata-admin/DirectoryPage packages/app-shell/src/views/metadata-admin/metadataAreaHost packages/i18n/ on 122de301019 — Test Files 2 failed / 397 passed, Tests 2 failed / 4399 passed / 13 skipped: the two failures were the pins that described the old directory, rewritten on purpose in 8c09070ce61.
  • Re-run on 45ed0a4bf5c of those two files plus the three new-pin files: Test Files 5 passed (5), Tests 90 passed (90), lock VERDICT command-exit 0.
  • Every other test file under ui that names the menu, the palette or the directory (22 files: the console AppContent.* landings, UnifiedSidebar.studioNoHome-12113, ResourceListPage.setupPosture-12606, check-i18n-call-site-keys, …) on 45ed0a4bf5c: Test Files 22 passed (22), Tests 607 passed (607), lock VERDICT command-exit 0.
  • Declared narrowing: the rest of @object-ui/app-shell's suite (about 2,000 files that import none of the changed modules) is left to CI's Test UI.
Type check

pnpm --filter @object-ui/app-shell --filter @object-ui/i18n run type-check on 45ed0a4bf5c: both Done, lock VERDICT command-exit 0. (The first run, before 45ed0a4bf5c, was red on the palette's entry-icon map, TS2741 Property 'allTypes' is missing; fixed there.)

Derived gate families

node scripts/pm/dispatch-gates.mjs --commands on 45ed0a4bf5c: 48 commands, all run, each exit 0 (exit captured before any pipe), including pnpm --dir ui exec vitest run scripts/ (Test Files 172 passed / 2 skipped). --ran reconciliation: "48 derived famil(ies) accounted for — 48 run, 0 NOT-MEASURED (a DERIVED zero — all 48 recorded an exit code and none of them is 3)".

node scripts/pm/overlap-check.mjs on 45ed0a4bf5c: origin/main merges cleanly; #37368 and #37362 (share the studio catalogues) merge cleanly; VERDICT clean exit 0.

Ablations

Each through node scripts/ablation-replace.mjs --file F --anchor A --replacement R -- (the pin's test, under the verify lock); every leg printed "ok mutation landed: anchor 1 -> 0" and "ok restored: blob == HEAD … and git diff HEAD is empty"; tree clean after (0 changed paths).

  • A, StudioMenu.tsx row render → {null}: Tests 1 failed — Unable to find an element by: [data-testid="studio-menu-entry-allTypes"].
  • B, directoryNotHeldEntries → return []: Tests 1 failed — expected [ 'hook', 'object' ] to deeply equal [ Array(5) ].
  • C, tile to={notHeld ? '.' : href}: Tests 1 failed — the tile's href assertion.
  • D, studioMenuData.ts always: → every served type: Tests 1 failed — expected … to be null (the fold drew type:email_template).

Generated by Claude Code

…y lists every type of the six groups

The fold's last row, under no group, opens the area's type directory. On a
package the directory now lists the types the package holds as before and,
after them, every other type of the menu's six groups, marked "None yet"
with the state word for what can be done there. The fold's own rule is
unchanged. ADR-0084 gains the dated amendment line.

Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
Co-Authored-By: Claude <noreply@anthropic.com>
…ory lists its not-held types

Two pins written before the row existed are rewritten on purpose: the area's
root is now the current page of 全部类型 All types, and a package that holds
none of the served types lists each as held by none yet instead of "No matches".
Adds the changeset.

Claude-Session: https://claude.ai/code/session_01QSeKYpEsWWE9Y5YtSsDgqZ
Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/l documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 26, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

席位核对 — ACCEPT · L1 · head 45ed0a4bf5cf79a76f4ea24655c5488b8d64f0db · 2026-11-26T01:02Z

PR #37380 for card #37360, ruling A (comment 7177310364, the maintainer's words 「37360 同意」). Read against GitHub and the tree at the head, not against the dev report (comment 7178891404).

Findings

No must-fix, no should-fix.

  • Landing: Tier H. node scripts/pm/check-governed-merges.mjs --pr 37380, run from a tree at origin/main, reads landing tier: H(人合) on docs/adr/** ×1 (docs/adr/0084-application-builder-information-architecture.md), and its low-risk arm reads Tier H as well (twelve paths outside skills wording, and the changeset releases two @object-ui packages). 536 changed lines (+509 / −27), under the 3000-line threshold. No seat flips the PR ready, enqueues it or arms auto-merge: it stays a draft and waits for the maintainer's merge or an authorized approval. K = 2 (landing-k.mjs --pr 37380, exit 0: PRBASE b8c8c8897c, hold at 15, no new locale pack, no shared book moved).

N1 — The order "held types first, then the not-held ones, inside each group" is in the code and is not pinned. Ablation of mine: [...scopedEntries, ...notHeldEntries] reversed in DirectoryPage.tsx leaves DirectoryPage.allTypes-37360.test.tsx and metadataAreaHost.scope-28561.test.tsx green (2 files, 21 tests). The fixture has no group that mixes a held and a not-held type in an order that differs from served order. The ruling does not rule the order; the changeset states it. Suggested: a test-only follow-up (hold object, not hook, and expect object before hook), or accept as is.
N2 — On a read-only package with no customization pair (a kernel package), a not-held type whose word is "can be customized" carries the hover text "This package holds none yet: open the list to make the first", and that list offers no New (ResourceListPage.tsx: canCreate needs !host.readOnly || createInPair). The rewritten kernel case in metadataAreaHost.scope-28561.test.tsx shows exactly this tile (flow). Hover text only; the visible state word is the page's existing one, as the ruling asked; the menu's engine.studio.menu.emptyType (PR #37341) has the same looseness. The PR body's acceptance note "the list can still make a first item" on a read-only package holds only where the pair exists; that sentence can be corrected in the PR body without moving the head. Suggested: a follow-up card for the hover text on read-only packages.
N3 — The browser walk the card's plan asked for (a new empty package, ending with a first email template made from the screen) is NOT MEASURED, as the dev declared. What is measured: the real directory page and the real list page in jsdom, tile click to /studio/PKG/metadata/email_template?package=PKG, and metadata-list-create on that page. The create form and its save into the package are not exercised by this PR's tests. The PR's two-minute check gives the walk to whoever merges.
N4 — The ADR line and the changeset say the directory lists "every type of the six groups". Two exceptions in the code, both deliberate and pinned: field (hidden; the ADR's own "Not every type draws a row" already says it has no list) and a failed diagnostics sweep, which lists and marks nothing. Accepted imprecision.

1 · Shape

  • l1-face.mjs --pr 37380 at the head, read 2026-11-26T00:57Z: exit 0, every row ok — open, draft, base main; first line Fixes #37360; no closing keyword binds another card; no content/docs/releases/ path; one non-empty changeset; Clause-②: no · Metadata-protocol: none; Skills-docs: not owed; dogfood not owed.
  • Fixes is right: the ruling's four parts (the row, the directory, a tile that opens a list with New, the dated ADR-0084 line) are all in this PR. The card planned the ADR line as a card of its own; the claim (7177496261) folded it into this PR's file surface.
  • Author objectstack-fleet[bot]; three commits, each with the session trailer; git diff --check clean.

2 · Premise and behaviour, measured on the tree

  • The fold's rule is unchanged. studioMenuData.ts still passes always: STUDIO_MENU_ALWAYS_TYPES to the shared scopeDirectoryEntries; directoryScope.ts and buildStudioMenu's grouping are not in the diff; the new row is built by studioMenuAllTypesEntry outside buildStudioMenu. CONTROL pins: rendered (email_template and position served, held by none, absent from the open fold) and model-level.
  • The row sits last, under no group: rendered after renderGroups(tiers.advanced, 'advanced') inside the fold region, in a plain div with no group and no group label; package scope only (null on ~org and ~all).
  • The directory, on a package under Studio's area: the held types as before (count, no mark), then per group every other served type of the six groups, marked "None yet" / 「还没有」 with no count and the existing state word. The page waits for the sweep before it draws (diagLoading), so nothing is marked "None yet" before the sweep answers. Setup's directory and the ~all leg are untouched (onPackage is false there).
  • A not-held tile links to the type's list with ?package=; the real list page renders New for a creatable type.
  • The six types that cannot be created in Studio are listed, read-only, with the hover text "This package holds none, and none can be made here"; "Hide read-only" drops them (pinned). Reasonable use of the choice the ruling left open: the ruling's words are "every type of the six groups", and no second hand-kept list is needed.
  • ADR-0084: +2 / −0 (one line and a blank), under "Entries that are not a type". It cites the card, the ruling comment and the verbatim words; its date is the ruling's calendar day (2026-11-25T23:14Z; the commit that wrote it is 2026-11-25T23:29Z). Each clause matches the code, with the N4 exceptions.
  • Translation keys: released-keys-removed.mjs --tag @object-ui/i18n@18.6.0 reads 77 at the head and 77 at the merge-base d5ae7a47ac, the same set (diff empty): this PR removes none. The i18n hunks carry no deleted line. engine.studio.menu.allTypes, engine.directory.notHeld, engine.directory.notHeldTitle, engine.directory.notHeldReadOnlyTitle each exist once in studio/en.ts and once in studio/zh.ts (the namespace has only those two catalogues).
  • Declarations: readClause2Line and readMetadataProtocolLine (scripts/pm/clause2-line.mjs) read declared · no and declared · none on the card's newest Claim: comment (7177496261, the only one), on the PR body and on the changeset. They are right: no schema or metadata key changes; @object-ui/app-shell is private and its entry still exports MetadataDirectoryPage with no props; the studio catalogue is a Record of strings, so four added keys change no exported type. Precedent: PR feat(studio): the left menu reads the placement table — 常用 types first, the rest in one 「高级」 fold #37341 added studio keys under the same two lines.

3 · Gates

  • Check-runs at the head, read 2026-11-26T00:57Z: 59 runs — 48 success, 11 skipped (all on the expected-skip list per l1-face), 0 failed, 0 pending. Floor: Lint & Repo Gates success, TypeScript Type Check success. Also green: Test Core, Test UI and its 16 shards, Type Check UI, Lint UI, Build & E2E UI, Live E2E UI, Check Changeset, Check Documentation Links, Governed Surface Queue Guard, Dogfood Regression Gate.
  • Polling, as seen: 2026-11-26T00:37Z 14 success / 30 pending; 2026-11-26T00:46Z 30 success / 17 in progress; 2026-11-26T00:48Z 38 / 9; 2026-11-26T00:52Z 7 pending, 0 non-green; 2026-11-26T00:56Z 0 pending, 0 non-green. The PR head did not move.
  • Pins at the head, in a throwaway worktree (removed afterwards): the five pin files, vitest run --maxWorkers=2: Test Files 5 passed (5), Tests 90 passed (90) — the dev's numbers.
  • Ablations, each one mutation with the anchor counted 1, the tree restored and clean after:
Mutation Result
A · the row's render in the fold becomes {null} red, 3 of 28: Unable to find an element by: [data-testid="studio-menu-entry-allTypes"]
B · directoryNotHeldEntries returns [] red, 5 of 8: expected [ 'hook', 'object' ] to deeply equal [ Array(5) ]
C · a not-held tile links to . red, 1 of 8: the tile's href assertion
D · the menu's always becomes every served type red, 3 of 28: expected … to be null on type:email_template
F (mine) · the !diagError guard removed red, 1 of 8: the failed-sweep control
G (mine) · the row drawn before the fold's groups red, 1 of 28: the last-row assertion
H (mine) · no tile is told it is not held red, 2 of 21: the mark, and the rewritten kernel case
I (mine) · the directory is no entry's page again red, 3 of 69: the model pin, the rendered pin and the rewritten StudioDesignSurface.metadataArea-28561 case
E (mine) · not-held before held green, 21 of 21 — N1

4 · Accepted deviations

5 · Out of scope, and Skills-docs

  • Skills-docs: not owed (Metadata-protocol: none, no narrowing arm). The report's out_of_scope_findings and open_questions are empty.
  • The changeset, read sentence by sentence against the diff: "Studio's 高级 Advanced fold lists a type only when the package holds one, so a new app showed no way to make its first email template, document, book, field mapping, seed data or AI context pack." — true, the card's six. "The fold now ends with one row under no group, 全部类型 All types, which opens the type directory." — true. "On a package that page lists the types the package holds, as before, and after them in each group every other type of the menu's six groups, marked None yet (zh: 还没有) with the word that says what can be done there; a tile opens the type's list, whose New makes the first item." — true, with N1 (order unpinned) and N4. "Types that cannot be made in Studio are listed as read-only, and Hide read-only drops them." — true. "The fold's own rule is unchanged: a 高级 type appears in it once the package holds one. The directory is the row's current page." — true. "New locale keys in the studio catalogue (en, zh): … No props or entry exports change." — true.
  • For the seat's ACCEPT lines: N1 and N2 are follow-up candidates; N3 is the maintainer's two-minute check or a seat dogfood walk; N4 is accepted. The card's own "seen on the way" (no New for agent and picklist) is not part of this PR.

6 · 维护者速读, as the dev drafted it

  • Line 1 (what changes) and line 2 (why): accurate.
  • Line 3 (what if it goes wrong): accurate; the final version should add that the browser walk on a new empty app was not measured (N3).
  • Line 4 (what is asked): accurate — the ADR line makes the PR governed; the final version cites the PASS record's comment id and the Head-sha.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 45ed0a4bf5cf79a76f4ea24655c5488b8d64f0db
Local-runs: probe — the seat ordered the L1 pin and ablation run on this same head in one throwaway worktree (five pin files, nine single-line mutations); the worktree is removed
Scope: docs/adr/0084-application-builder-information-architecture.md + ui/packages/app-shell/src/views/studio-design/StudioMenu.tsx, ui/packages/app-shell/src/views/studio-design/studioMenuModel.ts, ui/packages/app-shell/src/views/metadata-admin/DirectoryPage.tsx
Security-touching: no

PR #37380, card #37360, ruling A (comment 7177310364, the maintainer's words 「37360 同意」). Inputs: the card body and its four comments, the PR body, the 14-file net diff against main, and the check-runs on the head. The rules face: docs/adr/**, one hit. The rest of the diff (tests, the palette icon row, the catalogues, the changeset) is the lane seat's ACCEPT.

① Derived judgments

  • Accept set: unchanged — right. No schema, no metadata key, no registry flag is touched; which types can be created is read from the registry as it is.
  • Public surface: unchanged — right. @object-ui/app-shell is private; its entry still exports MetadataDirectoryPage, which takes no props, and index.ts is not in the diff. studioMenuAllTypesEntry, directoryNotHeldEntries and the allTypes member of StudioMenuEntryKind are module exports the entry does not re-export.
  • @object-ui/i18n: four keys added to the studio catalogue in en and zh (engine.studio.menu.allTypes, engine.directory.notHeld, engine.directory.notHeldTitle, engine.directory.notHeldReadOnlyTitle); the catalogue is a Record of strings, so no exported type changes. No released key is removed: released-keys-removed.mjs against @object-ui/i18n@18.6.0 reads the same 77 at the head and at the merge-base d5ae7a47ac.
  • Clause-②: no and Metadata-protocol: none — right. readClause2Line and readMetadataProtocolLine read declared on the card's newest Claim: comment (7177496261), on the PR body and on the changeset, with the same values. Precedent: PR feat(studio): the left menu reads the placement table — 常用 types first, the rest in one 「高级」 fold #37341 added studio keys under the same two lines.
  • The fold's rule: unchanged — right. The row is built outside buildStudioMenu; scopeDirectoryEntries and the menu's always list are untouched.

② Semver level

  • .changeset/37360-studio-all-types.md: patch on @object-ui/app-shell and @object-ui/i18n. The level follows Metadata-protocol: none: patch is right. The body carries both declaration lines. Check Changeset is success on the head.

③ Boundary flags

④ Design judgment

docs/adr/0084-application-builder-information-architecture.md — one added line (+2 / −0), under "Entries that are not a type". Judged against the ruling, against its first consumer (this PR's menu and directory) and against the rest of the record.

  • "on a package the menu holds a fifth entry, 全部类型 All types" — holds. studioMenuAllTypesEntry answers an entry for the package scope and null for ~org and ~all.
  • "the last row of the 高级 Advanced fold, below its groups — the one entry that sits under no group" — holds. StudioMenu.tsx draws it after renderGroups(tiers.advanced, 'advanced') inside the fold region, in no group and under no label. Pinned, and red when the row is removed or drawn before the groups.
  • "It opens the type directory" — holds. Its target is the area's root, whose index route is the directory; studioMenuCurrentKey makes that page the row's.
  • "which lists every type of the six groups: the ones the package holds, and the ones it holds none of yet, each marked so with what can be done there" — holds, with N4. directoryNotHeldEntries adds every served type whose domain is one of STUDIO_MENU_GROUPS and that the shared rule did not list; each carries the "None yet" mark and the page's existing state word.
  • "The fold's rule stands — a 高级 type is drawn when the package holds one." — holds. Pinned by two controls; red when the menu's always list is widened.
  • Against the ruling: the line names the entry and says it sits under no group, which is what the ruling asked of ADR-0084; it adds nothing the ruling did not say. It is dated the ruling's calendar day (2026-11-25T23:14Z) and cites the card, the ruling comment and the verbatim words.
  • Against the record: add-only. The sentence above it still reads "four entries", and the amendment's "The four entries that are not a type are 高级 on a package. Each is drawn after the types of its group" still stands for those four; the new line is the dated exception for the fifth, in the record's own amend-in-place form. The earlier "Weighed and not taken: an entry of its own outside the six groups" was about four Access types a group already lists; the card weighed that sentence and the ruling took A with it in view.
  • Execution plan: none is left open by the line; its only consumer ships in the same PR.

The implementing files agree with the line. Attempts to break it: a sweep still loading (the page draws nothing until it answers, so no type is marked early); a failed sweep (nothing listed or marked; pinned, red without the guard); ~org, ~all and Setup (no row, no added types; pinned); a menu search (the row is listed last when its name matches; pinned); a read-only package (N2); the hidden field and a type outside the six groups (never listed; pinned); the datasource tile (opens Setup's Datasources page, as the menu's row does).

No must-fix, no should-fix.

N1 — "held first, then not-held, inside each group" is in the code ([...scopedEntries, ...notHeldEntries], then a stable grouping) and no test tells it from the reverse: that mutation leaves the two directory test files green (21 of 21). The ADR line does not state an order; the changeset does. A test-only follow-up, or accepted.
N2 — On a read-only package with no customization pair, a not-held type whose word is "can be customized" carries the hover text "open the list to make the first", and that list offers no New. Hover text only; the visible word is the page's existing one, which is what the ruling asked for. A follow-up card.
N3 — The browser walk on a new empty package is not measured; the create form and its save are not exercised by this PR's tests. The lane seat's to carry.
N4 — "every type of the six groups" has two deliberate exceptions the line does not name: the hidden field, which the record already says has no list, and a failed sweep. Accepted imprecision.

Check-runs on the head, read 2026-11-26T00:57Z: 59 — 48 success, 11 expected skipped, 0 failed, 0 pending.

Implemented-by: claude/issue-37360-advanced-all-types
Reviewed-by: session_01QSeKYpEsWWE9Y5YtSsDgqZ

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ

维护者速读

  • 用户能看到什么变化:Studio 左侧菜单「高级」折叠区的最后多了一行「全部类型」;点开是类型目录页,按六个分组列出全部类型:这个应用已有的类型照旧显示数量,还没有的标着「还没有」并写明在这里能不能新建;点某个类型进入它的列表,列表上有「新建」。「高级」里原有的行和规则没有变。
  • 为什么做:按你在 [Decision] Studio「高级」里一条都没有的类型(如邮件模板、文档、字段映射),从哪里新建第一条 #37360 的裁决(「37360 同意」,方案 A);此前新建的应用里,邮件模板、文档、文档手册、字段映射、初始数据、AI 上下文包这几种类型在界面上没有入口,建不出第一条。
  • 出错会怎样:最坏是目录页上某个类型的「还没有」标错,或点进去的列表不能新建;菜单其余部分不受影响,本改动可以整体撤回。从空应用一路走到建出第一个邮件模板,这一步没有在真实浏览器里实测,自动化测试只覆盖到「点开类型后列表页出现新建按钮」。
  • 要你做什么:本改动给架构决策记录 ADR-0084 加了一句修订,属于需要你亲手批准或合并的改动;请批准或合并 PR feat(studio): 全部类型 All types ends the 高级 fold, and the type directory lists every type a package could hold #37380。契约审核通过的记录见 PR comment 7179389506,Head-sha 45ed0a4bf5cf79a76f4ea24655c5488b8d64f0db。

Approval request at 2026-11-26T01:03Z. The seat's L1 reading is ACCEPT and the same-head contract review is PASS, both on head 45ed0a4bf5cf79a76f4ea24655c5488b8d64f0db. Check-runs on that head, read 2026-11-26T00:57Z: 59 runs, 48 success, 11 expected skips, none failed, none pending. The head merges cleanly onto origin/main 15a5be1d1e, and K = 2. The PR is Tier H because it adds one dated line to docs/adr/0084-application-builder-information-architecture.md, so the seat does not flip it ready, enqueue it or arm auto-merge; it stays a draft until an authorized approval or the maintainer's own merge. Four nits are recorded in the seat record, none blocking: the held-before-not-held order is not pinned by a test, one hover text is loose on a read-only package without a customization pair, the browser walk was not measured, and the ADR line's "every type" leaves the hidden field unnamed.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 26, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 26, 2026 01:04
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 26, 2026
Any commits made after this event will not be merged.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Decision] Studio「高级」里一条都没有的类型(如邮件模板、文档、字段映射),从哪里新建第一条

2 participants